package com.yuandengta.yomall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuandengta.common.utils.PageUtils;
import com.yuandengta.yomall.ware.entity.PurchaseEntity;
import com.yuandengta.yomall.ware.vo.MergeVO;
import com.yuandengta.yomall.ware.vo.PurchaseDoneVO;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author kevin
 * @email 178676392@qq.com
 * @date 2020-12-22 20:55:31
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询未领取的采购单
     * @param params
     * @return
     */
    PageUtils queryPageUnReceivePurchase(Map<String, Object> params);

    /**
     * 合并采购需求-采购单
     * @param mergeVO
     */
    void mergePurchase(MergeVO mergeVO);

    /**
     * 领取采购单
     * @param ids
     */
    void receivePurchase(List<Long> ids);

    /**
     * 完成采购单
     * @param purchaseDoneVO
     */
    void done(PurchaseDoneVO purchaseDoneVO);
}

